package com.goods.dao.impl;

import java.util.List;
import java.util.Map;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import com.goods.dao.SearchGoodsDao;

/**
 * 
 * @author penghui.li
 *
 */
@SuppressWarnings("rawtypes")
@Repository("searchGoodsDao")
public class SearchGoodsDaoImpl  extends SqlSessionDaoSupport  implements SearchGoodsDao{
	
	
	/**
	 * 查找商品总数
	 * @return
	 */
	public Integer queryGoodsCount(){
		return (Integer) this.getSqlSession().selectOne("com.common.domain.GoodsVo.queryGoodsCount");
	}
	
	/**
	 * 查找商品
	 * @param map
	 * @return
	 */
	public List queryGoods(Map map){
		return this.getSqlSession().selectList("com.common.domain.GoodsVo.queryGoods",map);
	}
	

}
